<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupGetCallback</title>

<link rel="stylesheet" type="text/css" href="../../style.css">
<style type="text/css">
.style1 {
	text-decoration: underline;
}
</style>
</head>
<body>

<h2>IupGetCallback</h2>
<p>Returns the callback associated to an event.
  </p>
<h3>
Parameters/Return</h3>
<pre>Icallback IupGetCallback(Ihandle* <b>ih</b>, const char *<strong>name</strong>); [in C]
[There is no equivalent in Lua]</pre>
<p><b>ih</b>: identifier of the interface element. <strong><br>
</strong><b>name</b>: attribute name of the callback.</p>
<p><span class="style1">Returns:</span> the callback or NULL if there is none.</p>
<h3>Notes</h3>
<p>This function replaces the combination:</p>
<pre>IupGetFunction(IupGetAttribute(ih, name))</pre>
<p>If an event is associated using <b>IupSetFunction</b> and <b>IupSetAttribute</b>, the 
<b>IupGetCallback</b> also returns the correct callback. So old applications work normally.</p>
<h3>See Also</h3>
<p><a href="iupsetcallback.html">IupSetCallback</a>,&nbsp;&nbsp;
  <a href="iupgetfunction.html">IupGetFunction</a></p>
<p>&nbsp;</p>

</body>

</html>
